CC=gcc
CFLAGS=-std=c99 -Wall -Werror

SOURCES=garbagecollector.c runtime.c runtime_vector.c runtime_string.c runtime_eq.c stack.c runtime_print.c runtime_cons.c runtime_arith.c runtime_types.c csans.c symboltable.c
OBJECTS=$(SOURCES:.c=.o)

all: sans

clean:
	rm -f *.o
	rm -f sans

todo:
	@grep TODO *c

%.o: %.c
	$(CC) -O2 -c $(CFLAGS) $< -o $@

sans: $(OBJECTS)
	gcc -o sans $(OBJECTS)
